#include <iostream>
#include <string>

using namespace std;

void get_user_info() {
    string name;
    int age;

    cout << " your name: ";
    getline(cin, name);
// "接收一个字符串.可以输出空格"


    cout << " your age: ";
    cin >> age;

    cout << "Your name is " << name << "and you are " << age << " years old." << endl;
}

int main() {
    get_user_info();
    return 0;
}